package com.ajz.manager.entity;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;

import com.ajz.common.entity.BaseEntity;

/**
 * 
 * <p>材料 </p>
 *
 * @author xyj
 * @date 2018年11月14日
 */
@Entity
public class Materials extends BaseEntity<String>{
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 材料图
	 */
	@Column(columnDefinition = "Text")
	private String images;
	/**
	 * 备注
	 */
	private String remark;
	
	/**
	 * 师傅id
	 */
	@OneToOne(fetch=FetchType.LAZY,cascade = CascadeType.ALL) //JPA注释： 一对一 关系
	private Member member;
	
	/**
	 * 订单id
	 */
	@OneToOne(fetch=FetchType.LAZY,cascade = CascadeType.ALL) //JPA注释： 一对一 关系
	private OrdOrder ordOrder;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public OrdOrder getOrdOrder() {
		return ordOrder;
	}

	public void setOrdOrder(OrdOrder ordOrder) {
		this.ordOrder = ordOrder;
	}

}
